/* Переменные для удобной смены цветов */
:root {
    --bg-main: #0f172a;       /* Глубокий темно-синий/серый фон */
    --bg-card: #1e293b;       /* Фон для карточек */
    --accent-blue: #38bdf8;   /* Неоновый синий для акцентов */
    --accent-hover: #0ea5e9;  /* Цвет при наведении */
    --text-main: #f8fafc;     /* Основной белый текст */
    --text-muted: #94a3b8;    /* Второстепенный серый текст */
}

/* Сброс базовых стилей */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта (смена стиля при скролле управляется через JS) */
header {
    background-color: rgba(15, 23, 42, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, padding 0.3s;
}

header.scrolled {
    background-color: #090d16;
    padding: 5px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Стили для выпадающей панели услуг */
.services-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #111827;
    border-bottom: 2px solid var(--accent-blue);
    display: none; /* Скрыто по умолчанию */
    padding: 30px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.services-panel.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.panel-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.panel-item {
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.panel-item:hover {
    background-color: #1f2937;
}

.panel-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.panel-item h4 {
    color: var(--text-main);
    font-size: 16px;
}

/* Стили для внутренних страниц (цены и прочее) */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Главный экран (Hero Section) */
.hero {
    padding: 180px 0 100px 0;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg-main) 70%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent-blue);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--bg-main);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Секция услуг */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--accent-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.card-icon {
    font-size: 40px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Секция Контакты и Форма */
.contacts {
    padding: 100px 0;
    background-color: #0b0f19;
}

.contacts-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacts p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--accent-blue);
    transition: all 0.3s ease;
    min-width: 160px;
}

.contact-button:hover {
    background-color: var(--accent-blue);
    color: var(--bg-main);
    transform: translateY(-2px);
}


.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: var(--accent-blue);
}

.btn-submit {
    width: 100%;
}

.status-message {
    margin-top: 15px;
    font-weight: 500;
}

/* Подвал сайта */
footer {
    background-color: var(--bg-main);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #334155;
    color: var(--text-muted);
    font-size: 14px;
}

/* Стили для мини-героя (внутренние страницы) */
.hero-mini {
    padding: 120px 0 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #1e293b, var(--bg-main));
}

.hero-mini h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-mini h1 span {
    color: var(--accent-blue);
}

.hero-mini p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Стили для секции цен */
.pricing {
    padding: 80px 0;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card h3 {
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-main);
}

.pricing-card .btn {
    margin-top: auto;
    text-align: center;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Скрываем меню на смартфонах (для упрощения) */
    }
    .hero h1 {
        font-size: 38px; /* Уменьшаем размер шрифта заголовка для мобильных */
    }
    .services-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }
    .card {
        padding: 25px;
    }
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    .hero-mini h1 {
        font-size: 32px; /* Уменьшаем размер шрифта заголовка для мини-героя на мобильных */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }
    .section-title {
        font-size: 28px;
    }
    .panel-content {
        grid-template-columns: 1fr;
    }
    .contact-button {
        width: 100%;
    }
}

